From e1e86ff4a2e1fbabe545035b3426a1dd65e6ee78 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Fri, 14 May 2010 08:05:05 +0100 Subject: [PATCH] xl: Add include-only-once checks to xl_cmd{impl,table}.h Signed-off-by: Keir Fraser --- tools/libxl/xl_cmdimpl.h | 5 +++++ tools/libxl/xl_cmdtable.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/tools/libxl/xl_cmdimpl.h b/tools/libxl/xl_cmdimpl.h index eca6790a54..2654efb589 100644 --- a/tools/libxl/xl_cmdimpl.h +++ b/tools/libxl/xl_cmdimpl.h @@ -12,6 +12,9 @@ * GNU Lesser General Public License for more details. */ +#ifndef XL_CMDIMPL_H +#define XL_CMDIMPL_H + int main_vcpulist(int argc, char **argv); int main_info(int argc, char **argv); int main_cd_eject(int argc, char **argv); @@ -51,3 +54,5 @@ int main_blockdetach(int argc, char **argv); int main_uptime(int argc, char **argv); void help(char *command); + +#endif /* XL_CMDIMPL_H */ diff --git a/tools/libxl/xl_cmdtable.h b/tools/libxl/xl_cmdtable.h index 089205101c..90d1058e8e 100644 --- a/tools/libxl/xl_cmdtable.h +++ b/tools/libxl/xl_cmdtable.h @@ -12,6 +12,9 @@ * GNU Lesser General Public License for more details. */ +#ifndef XL_CMDTABLE_H +#define XL_CMDTABLE_H + #include "xl_cmdimpl.h" struct cmd_spec { @@ -24,3 +27,5 @@ struct cmd_spec { extern struct cmd_spec cmd_table[]; extern int cmdtable_len; + +#endif /* XL_CMDTABLE_H */ -- 2.30.2